package com.itheima.controller;

import com.itheima.config.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <dl>
 * <dd>描述: ~节点业务逻辑实现</dd>
 * <dd>创建时间：  16:21 2020/3/11</dd>
 * <dd>创建人： zz</dd>
 * <dt>版本历史: </dt>
 * <pre>
 * Date         Author      Version     Description
 * ------------------------------------------------------------------
 * 2020/3/11      guodong       1.0        1.0 Version
 * </pre>
 * </dl>
 */
@RestController
public class HelloController {


    @Autowired
    private Person person;

    @GetMapping("/sayHello")
    public String sayHello(){
        return "hello spring 02";
    }

    @GetMapping("getPerson")
    public Person getPerson() {
        return person;
    }
}
